﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000297 RID: 663
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueQuestFinishNotify : IMessage<ChessRogueQuestFinishNotify>, IMessage, IEquatable<ChessRogueQuestFinishNotify>, IDeepCloneable<ChessRogueQuestFinishNotify>, IBufferMessage
	{
		// Token: 0x170008A6 RID: 2214
		// (get) Token: 0x06001DBC RID: 7612 RVA: 0x00054D4D File Offset: 0x00052F4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueQuestFinishNotify> Parser
		{
			get
			{
				return ChessRogueQuestFinishNotify._parser;
			}
		}

		// Token: 0x170008A7 RID: 2215
		// (get) Token: 0x06001DBD RID: 7613 RVA: 0x00054D54 File Offset: 0x00052F54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueQuestFinishNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008A8 RID: 2216
		// (get) Token: 0x06001DBE RID: 7614 RVA: 0x00054D66 File Offset: 0x00052F66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueQuestFinishNotify.Descriptor;
			}
		}

		// Token: 0x06001DBF RID: 7615 RVA: 0x00054D6D File Offset: 0x00052F6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQuestFinishNotify()
		{
		}

		// Token: 0x06001DC0 RID: 7616 RVA: 0x00054D75 File Offset: 0x00052F75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQuestFinishNotify(ChessRogueQuestFinishNotify other) : this()
		{
			this.eOCNMIIBCNG_ = other.eOCNMIIBCNG_;
			this.questId_ = other.questId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001DC1 RID: 7617 RVA: 0x00054DA6 File Offset: 0x00052FA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQuestFinishNotify Clone()
		{
			return new ChessRogueQuestFinishNotify(this);
		}

		// Token: 0x170008A9 RID: 2217
		// (get) Token: 0x06001DC2 RID: 7618 RVA: 0x00054DAE File Offset: 0x00052FAE
		// (set) Token: 0x06001DC3 RID: 7619 RVA: 0x00054DB6 File Offset: 0x00052FB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EOCNMIIBCNG
		{
			get
			{
				return this.eOCNMIIBCNG_;
			}
			set
			{
				this.eOCNMIIBCNG_ = value;
			}
		}

		// Token: 0x170008AA RID: 2218
		// (get) Token: 0x06001DC4 RID: 7620 RVA: 0x00054DBF File Offset: 0x00052FBF
		// (set) Token: 0x06001DC5 RID: 7621 RVA: 0x00054DC7 File Offset: 0x00052FC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint QuestId
		{
			get
			{
				return this.questId_;
			}
			set
			{
				this.questId_ = value;
			}
		}

		// Token: 0x06001DC6 RID: 7622 RVA: 0x00054DD0 File Offset: 0x00052FD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueQuestFinishNotify);
		}

		// Token: 0x06001DC7 RID: 7623 RVA: 0x00054DDE File Offset: 0x00052FDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueQuestFinishNotify other)
		{
			return other != null && (other == this || (this.EOCNMIIBCNG == other.EOCNMIIBCNG && this.QuestId == other.QuestId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001DC8 RID: 7624 RVA: 0x00054E1C File Offset: 0x0005301C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EOCNMIIBCNG != 0U)
			{
				num ^= this.EOCNMIIBCNG.GetHashCode();
			}
			if (this.QuestId != 0U)
			{
				num ^= this.QuestId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001DC9 RID: 7625 RVA: 0x00054E74 File Offset: 0x00053074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001DCA RID: 7626 RVA: 0x00054E7C File Offset: 0x0005307C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001DCB RID: 7627 RVA: 0x00054E88 File Offset: 0x00053088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.QuestId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.QuestId);
			}
			if (this.EOCNMIIBCNG != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.EOCNMIIBCNG);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001DCC RID: 7628 RVA: 0x00054EE4 File Offset: 0x000530E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EOCNMIIBCNG != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EOCNMIIBCNG);
			}
			if (this.QuestId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.QuestId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001DCD RID: 7629 RVA: 0x00054F3C File Offset: 0x0005313C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueQuestFinishNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EOCNMIIBCNG != 0U)
			{
				this.EOCNMIIBCNG = other.EOCNMIIBCNG;
			}
			if (other.QuestId != 0U)
			{
				this.QuestId = other.QuestId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001DCE RID: 7630 RVA: 0x00054F8C File Offset: 0x0005318C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001DCF RID: 7631 RVA: 0x00054F98 File Offset: 0x00053198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EOCNMIIBCNG = input.ReadUInt32();
					}
				}
				else
				{
					this.QuestId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000C45 RID: 3141
		private static readonly MessageParser<ChessRogueQuestFinishNotify> _parser = new MessageParser<ChessRogueQuestFinishNotify>(() => new ChessRogueQuestFinishNotify());

		// Token: 0x04000C46 RID: 3142
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C47 RID: 3143
		public const int EOCNMIIBCNGFieldNumber = 13;

		// Token: 0x04000C48 RID: 3144
		private uint eOCNMIIBCNG_;

		// Token: 0x04000C49 RID: 3145
		public const int QuestIdFieldNumber = 7;

		// Token: 0x04000C4A RID: 3146
		private uint questId_;
	}
}
